package com.gang.mars.basic.jdk18.functionalInf;

/**
 * @author gang.chen
 * @description
 * @Date 2021/7/2 14:39
 */
public class FDemo {
    public static void main(String[] args) {
        T1 t1 = () -> { };
        t1.say();

        T2 t2 = () ->"t2 say hello world";
        String say = t2.say();

    }
    @FunctionalInterface
    interface T1 {
        void say();
    }

    @FunctionalInterface
    interface T2{
        String say();
    }
}

